package mapper;

import entity.Admin;

import java.util.List;
import java.util.Map;

public interface AdminMapper {
    int insert(Admin admin);

    List<Admin> selectAll();

    Admin selectByAccount(String account);

    Admin selectById(Integer id);

    int delete(Integer id);

    int update(Admin admin);

    List<Admin> selectWithRole(Map<String,Object> map);

    List<Admin> selectByMap(Map<String,Object> map);

    int updateHeadPic(Admin admin);
}
